package com.lsz.intelligentflowerwatering

import android.Manifest


object PermissionIdentify {

    private val permissionsLowerTo12 = arrayOf<String>(
        Manifest.permission.ACCESS_COARSE_LOCATION,
        Manifest.permission.ACCESS_FINE_LOCATION,
//        Manifest.permission.ACCESS_BACKGROUND_LOCATION
    )
    private val permissionsHigherTo12 = arrayOf<String>(
        Manifest.permission.BLUETOOTH_SCAN,
        Manifest.permission.BLUETOOTH_CONNECT
    )

    fun androidLowerTo12PermissionIdentify(operate: (Array<String>) -> Unit) {
        operate(permissionsLowerTo12)
    }

    fun androidHigherTo12PermissionIdentify(operate: (Array<String>) -> Unit) {
        operate(permissionsHigherTo12)
    }
}